package com.example.shinelonx6.myapplication;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

/**
 * Created by Shinelon X6 on 2017/10/27.
 */
public class register extends Activity{

    private EditText name;
    private EditText password;
    String strname;
    String strpassword;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout1);
    }



    public void Clk_complete(View v){
        name = (EditText)findViewById(R.id.zhuceyouruser);
        password = (EditText)findViewById(R.id.zhucepassword);
        strname = name.getText().toString();
        strpassword = password.getText().toString();

        Intent intent = new Intent();
        intent.putExtra("name",strname);
        intent.putExtra("password",strpassword);
        setResult(1,intent);
        finish();
    }


}
